import request from '@/router/axios'

const path = '/ykdlnrzyyjkfwjls'

export function addObj(obj) {
  return request({
    url: `${path}`,
    method: 'post',
    data: obj
  })
}

export function updateObj(obj) {
  return request({
    url: `${path}`,
    method: 'put',
    data: obj
  })
}

export function getObj(obj) {
  return request({
    url: `${path}/finds`,
    method: 'post',
    data: obj
  })
}

export function fetchList(query) {
  return request({
    url: `${path}`,
    method: 'get',
    params: query
  })
}

export function getByTiaowen(query) {
  return request({
    url: `/ykdjmjkdnjls/findtm`,
    method: 'post',
    data: query
  })
}
